package com.wb.system.service.impl;

import com.wb.common.vo.ExamsTypeModelVO;
import com.wb.system.domain.ExamsTypeEntity;
import com.wb.system.mapper.ExamsTypeMapper;
import com.wb.system.service.ExamsTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExamsTypeServiceImpl implements ExamsTypeService {
    @Autowired
    private ExamsTypeMapper examsTypeMapper;

    @Override
    public List<ExamsTypeEntity> selectExamsTypeList(ExamsTypeModelVO examstypeModelVO) {
        return examsTypeMapper.selectExamsTypeList(examstypeModelVO);
    }

    @Override
    public ExamsTypeEntity selectById(Long id) {
        return examsTypeMapper.selectById(id);
    }

    @Override
    public void saveExamsType(ExamsTypeEntity examsTypeEntity) {
        examsTypeMapper.save(examsTypeEntity);
    }

    @Override
    public void updateExamsTypeById(ExamsTypeEntity examsTypeEntity) {
        examsTypeMapper.updateExamsTypeById(examsTypeEntity);
    }

    @Override
    public void removeExamsTypeByIds(List<Long> ids) {
        if (ids != null && ids.size() > 0) {
            for (Long id : ids) {
                examsTypeMapper.removeExamsTypeById(id);
            }
        }
    }
}
